package com.dianxin.smartpark.service.common;

import com.chinatelecom.response.common.CommonResponseBody;
import com.dianxin.device.api.device.dto.SmartParkRelationDeviceDTO;
import com.dianxin.device.api.device.qo.SmartParkRelationDeviceRpcQO;

import java.util.List;

/**
 * 业务关联设备Service接口
 *
 * @author chenjiasong
 * @date 2021-07-19
 */
public interface SmartParkRelationDeviceService {
    /**
     * 查询业务关联设备列表
     *
     * @param qo 业务关联设备
     * @return 业务关联设备集合
     */
    CommonResponseBody<List<SmartParkRelationDeviceDTO>> selectSmartParkRelationDeviceList(SmartParkRelationDeviceRpcQO qo) throws Exception;

    /**
     * 新增业务关联设备
     *
     * @param smartParkRelationDeviceDTO 业务关联设备
     * @return 结果
     */
    CommonResponseBody<Boolean> insertSmartParkRelationDevice(SmartParkRelationDeviceDTO smartParkRelationDeviceDTO) throws Exception;

    /**
     * 删除业务关联设备信息
     *
     * @param smartParkRelationDeviceDTO 业务关联设备ID
     * @return 结果
     */
    CommonResponseBody<Boolean> deleteSmartParkRelationDevice(SmartParkRelationDeviceDTO smartParkRelationDeviceDTO) throws Exception;
}
